<?php
set_time_limit(6);
$fp = fsockopen("notts.dyndns.org", 443, $errno, $errstr, 5);
if (!$fp) {
    echo "$errstr ($errno)<br />\n";
} else {
    fwrite($fp, "\0c\0h\0e\0c\0k\0u\0p\0\n");
    if(!feof($fp) && ($str=fgets($fp, 5))=="\0o\0k") {
        echo "ok";
    } else {
			echo "error: ".$str;
		}
    fclose($fp);
}
?>
